package com.ftf.tp.user.interfaces.controller;

import com.ftf.tp.common.core.annotation.ResponseResult;
import com.ftf.tp.user.application.dto.SupportDTO;
import com.ftf.tp.user.application.service.ActionApplicationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 用户交互关系
 *
 * @author tanghao
 * @date 2022/8/9
 */
@Slf4j
@Api("用户行为")
@ResponseResult
@RequestMapping("/user/relation")
@RestController
public class ActionController {

    @Resource
    private ActionApplicationService actionApplicationService;

    /**
     *
     *
     * @param supportDTO 参数
     */
    @ApiOperation("用户-行为-点赞")
    @PostMapping("/support")
    public void support(@RequestBody SupportDTO supportDTO) {
        actionApplicationService.support(supportDTO);
    }
}
